package com.wenshi.web.controller.tool;

import com.wenshi.system.domain.SysDevice;
import com.wenshi.system.domain.vo.request.UpdateDeviceRequest;

public class TranToSysDevice {

    public  static SysDevice tranToSysDevice(UpdateDeviceRequest deviceRequest){

        SysDevice sysDevice = new SysDevice();
        sysDevice.setDeviceId(deviceRequest.getDeviceId());
        sysDevice.setDeviceName(deviceRequest.getDeviceName());
        sysDevice.setDeviceType(deviceRequest.getDeviceType());
        sysDevice.setDeviceIp(deviceRequest.getDeviceIp());
        sysDevice.setDevicePort(deviceRequest.getDevicePort());
        sysDevice.setDeviceStatus(deviceRequest.isDeviceStatus());
        sysDevice.setDeviceArea(deviceRequest.getDeviceArea());
        return sysDevice;
    }
}
